import javax.swing.JInternalFrame;

import java.awt.event.*;
import java.awt.*;

public class MyInternalFrame extends JInternalFrame {
    static int openFrameCount = 0;
    static final int xOffset = 950, yOffset = 310;

    public MyInternalFrame() {
    	super("Log", 
              true, //resizable
              true, //closable
              true, //maximizable
              true);//iconifiable
        openFrameCount++;
        //Then set the window size
        setSize(300,300);

        //Set the window's location.
        setLocation(xOffset*openFrameCount, yOffset*openFrameCount);
    }
    public MyInternalFrame(String name) {
    	super(name, 
              true, //resizable
              true, //closable
              true, //maximizable
              true);//iconifiable
        openFrameCount++;
        //Then set the window size
        setSize(300,300);

        //Set the window's location.
        setLocation(xOffset*openFrameCount, yOffset*openFrameCount);
    }

}